#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QtGui>

#include <qmobilityglobal.h>

QTM_BEGIN_NAMESPACE
    class QNetworkSession;
    class QGeoPositionInfoSource;
    class QGeoPositionInfo;
    class QGeoSatelliteInfoSource;
    class QGeoSatelliteInfo;
QTM_END_NAMESPACE

QTM_USE_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = 0);
    ~Widget();

private:
    QGeoPositionInfo* lastPos;
    QTextEdit* textInput;
    QPushButton* button1;
    QGeoPositionInfoSource* location;
    QGeoSatelliteInfoSource* satellites;

private slots:
    void positionUpdated(const QGeoPositionInfo &gpsPos);
    void button1Clicked();
};

#endif // WIDGET_H
